﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTGroup_ZheJiang.IDAL;
using System.Configuration;

namespace DTGroup_ZheJiang.Business
{
    public class DaoFactories
    {
        private static IDaoFactory factory;
        public static IDaoFactory Current
        {
            get
            {
                if (factory == null)
                {
                    factory = (IDaoFactory)Activator.CreateInstance(Type.GetType(ConfigurationManager.AppSettings["DaoFactory"]));
                }
                return factory;
            }
        }
    }
}
